﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TomShane.Neoforce.Controls;
using Microsoft.Xna.Framework.Graphics;

namespace XGame.Class
{
    class ItemBar : ImageBox
    {
        const int x = 10;

        public ToolCell[] Cells;
        public ItemBar(Manager Manager)
            : base(Manager)
        {
            Cells = new ToolCell[x];
        }

        public override void Init()
        {
            base.Init();
            //this.Image = Manager.Content.Load<Texture2D>(@"Content\Image\Interface\Plate\ItemBar");
            this.Width = 338;
            this.Height = 32;

            for (int i = 0; i < x; i++)
            {
                Cells[i] = new ToolCell(Manager, "", ToolIcon.Type.Item);
                Cells[i].Init();
                Cells[i].Width = 32;
                Cells[i].Height = 32;
                Cells[i].Left = i * 34;
                Cells[i].Top = 0;
                Cells[i].Parent = this;
            }
        }
    }
}
